<? foreach($scraps as $scrap){?>
    <?
    if($scrap['Scrap']['type']=='image')
    {
        echo("<h2>".$scrap['Image']['description']."</h2>");
        echo($this->Html->image('/'.$scrap['Image']['dir'].'/'.$scrap['Image']['filename'],array('class'=>'picture_big')));
        echo('<br/>');
        echo('postado por: '.$scrap['User']['name']);
    }

    else
    {
        echo("<h2>".$scrap['Message']['description']."</h2>");
        echo('<br/>');
        echo('postado por: '.$scrap['User']['name']);
    }
    
    echo('<hr/>');
    ?>
<? } ?>
